import { BaseType } from '@/api/common/types'
import { IconNameType } from '@/types/type'

export interface MenuForm {
    id: number
    name: string
    path: string
    title: string
    componentPath: string
    redirect: string
    icon: IconNameType
    type: number
    permission: string
    description: string
    sort: number
    isEnabled: boolean
    isHidden: boolean
    isKeepalive: boolean
    isAffis: boolean
    parentId: number
    apiIds: number[]
    authFields: string[]
}

export interface MenuType extends MenuForm, BaseType {
    parentName: string
    children: MenuType[]
}
